package com.home.security.browser.auth.service;

import com.home.common.framework.core.entity.EntityUtils;
import com.home.security.browser.auth.entity.SysOperLog;
import com.home.security.browser.auth.mapper.SysOperLogMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Description:
 * Created by 王大宸 on 2020-10-08 20:29
 * Created with IntelliJ IDEA.
 */
@Service
public class SysOperLogService {
    @Autowired
    private SysOperLogMapper operLogMapper;

    /***
     * 功能说明：添加操作日志
     *
     * @author 王大宸
     * @date 2020/10/8 20:31
     * @param sysOperLog  sysOperLog
     * @return void
     */
    public void save(SysOperLog sysOperLog) {
        sysOperLog.setId(EntityUtils.getId());
        operLogMapper.insert(sysOperLog);
    }


}
